﻿using ZR.Model;
using ZR.Model.Souvenir;
using ZR.Model.Souvenir.Dto;

namespace ZR.Service.Souvenir.IService
{
    public interface ICategoryService : IBaseService<Category>
    {
        Task<int> InsertCategoryAsync(Category category);
        
        Task<int> UpdateCategoryAsync(Category category);

        Task<int> DeleteCategoryAsync(int categoryId);
        
        Task<PagedInfo<Category>> SelectCategoryWithPageAsync(CategoryQueryDto categoryQueryDto);
        
        Task<Category> SelectCategoryAsyncById(int categoryId);
        
        Task<List<Category>> SelectCategoryWithTreeAsync();
    }
}